package com.yf.kaibiyuanze.impl;

/**
 * @Author Yang_Vincent
 * @Date 2020/8/17 23:06
 */
public class JavaCourseDiscount extends JavaCourse {

    public JavaCourseDiscount(Integer id, String name, Double price) {
        super(id, name, price);
    }

    public Double getOriginPrice() {
        return super.getPrice();
    }

    @Override
    public Double getPrice() {
        return super.getPrice() * 0.6;
    }
}
